package com.nie.token_bucket.controller;

import com.nie.token_bucket.annotation.LimitingRequired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试控制器
 *
 * @author nie_cq
 * @date 2022/10/28
 */
@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping("/ping")
    @LimitingRequired()
    public String ping() {
        return "ping";
    }

}
